package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 字典数据对象 system_dict_data
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
public class SystemDictData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 字典编码 */
    private Long id;

    /** 字典排序 */
    @Excel(name = "字典排序")
    private Long sort;

    /** 字典标签 */
    @Excel(name = "字典标签")
    private String label;

    /** 字典键值 */
    @Excel(name = "字典键值")
    private String value;

    /** 字典类型 */
    @Excel(name = "字典类型")
    private String dictType;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Long status;

    /** 颜色类型 */
    @Excel(name = "颜色类型")
    private String colorType;

    /** css 样式 */
    @Excel(name = "css 样式")
    private String cssClass;

    /** 是否默认 */
    @Excel(name = "是否默认")
    private Integer defaultFlag;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creator;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updater;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setLabel(String label) 
    {
        this.label = label;
    }

    public String getLabel() 
    {
        return label;
    }
    public void setValue(String value) 
    {
        this.value = value;
    }

    public String getValue() 
    {
        return value;
    }
    public void setDictType(String dictType) 
    {
        this.dictType = dictType;
    }

    public String getDictType() 
    {
        return dictType;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setColorType(String colorType) 
    {
        this.colorType = colorType;
    }

    public String getColorType() 
    {
        return colorType;
    }
    public void setCssClass(String cssClass) 
    {
        this.cssClass = cssClass;
    }

    public String getCssClass() 
    {
        return cssClass;
    }
    public void setDefaultFlag(Integer defaultFlag) 
    {
        this.defaultFlag = defaultFlag;
    }

    public Integer getDefaultFlag() 
    {
        return defaultFlag;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sort", getSort())
            .append("label", getLabel())
            .append("value", getValue())
            .append("dictType", getDictType())
            .append("status", getStatus())
            .append("colorType", getColorType())
            .append("cssClass", getCssClass())
            .append("remark", getRemark())
            .append("defaultFlag", getDefaultFlag())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("updater", getUpdater())
            .append("updateTime", getUpdateTime())
            .append("deleted", getDeleted())
            .toString();
    }
}
